//
// Created by lly on 2020/1/8.
//
#include "com_lly_CountNum.h"
#include <iostream>

JNIEXPORT jint JNICALL Java_com_lly_CountNum_addInt (JNIEnv *, jobject, jint int1, jint int2)
{
    int result = 0;
    std::cout << "======= start ======="<< std::endl;
    result = int1 + int2;
    std::cout << "=======  end  ======="<< std::endl;
    return result;
}

/*
 * Class:     com_lly_CountNum
 * Method:    addDouble
 * Signature: (DD)D
 */
JNIEXPORT jdouble JNICALL Java_com_lly_CountNum_addDouble (JNIEnv *, jobject, jdouble double1, jdouble double2)
{
    double result = 0.000000;
    printf("======= start =======");
    result = double1 + double2;
    printf("=======  end  =======");
    return result;
}
